package com.feige.openfeigh;

import com.feige.constant.Constants;
import com.feige.pojo.vo.UserVo;
import com.feige.result.R;
import io.lettuce.core.ScanIterator;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * @author feige<br />
 * @ClassName: UserCourseService <br/>
 * @Description: <br/>
 * @date: 2021/8/31 0:20<br/>
 */
@Component
@FeignClient(Constants.XIAOFEI_CLOUD_CLASSROOM_COURSE)
public interface UserCourseService {

    @GetMapping("/chat/user/userVo/{courseId}")
    R<List<UserVo>> getCourseUserVoByCourseId(@PathVariable("courseId") String courseId);
}
